package com.pencilisland.pay.mgt.app.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商品图片详情
 * 
 * @author Breeze
 *
 */
@Entity
@Table(name = "APP_GOODS_IMG")
public class GoodsImgEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	/**
	 * 商品ID
	 */
	@Column(name = "GOODS_ID")
	private Long goodsId;
	/**
	 * 图片URL
	 */
	@Column(name = "URL", length = 200)
	private String url;
	/**
	 * 图片文件名
	 */
	@Column(name = "FILE_NAME", length = 200)
	private String fileName;
	/**
	 * 图片大小
	 */
	@Column(name = "SIZE")
	private Long size;

	/**
	 * 图片类型0：轮播图，1：详情图
	 */
	@Column(name = "TYPE", columnDefinition = "tinyint default 0")
	private Integer type;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
